home *** CD-ROM | disk | FTP | other *** search
- Path: news.itsyd.bhp.com.au!news
- From: Richard Bowen <bowen.richard.rw@bhp.com.au>
- Newsgroups: comp.lang.c++
- Subject: Re: "Pure virtual function called" error with Sparcworks
- Date: Fri, 12 Apr 1996 13:10:49 +1100
- Organization: BHP IT
- Message-ID: <316DBBA9.23FA@bhp.com.au>
- References: <316B8607.41C67EA6@jpmorgan.com> <Pine.OSF.3.91.960411112749.11275A-100000@bud.cc.swin.edu.au>
- NNTP-Posting-Host: 134.18.154.118
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- John Joseph Newbigin wrote:
- >
- > On Wed, 10 Apr 1996, Oliver Peck wrote:
- >
- > > I am using V4.0.1 of the Sparcworks C++ compiler.
- > >
- > > A program is occasionally crashing with the message:-
- > >
- > > "**** Pure virtual function called"
- > >
- > > Does anyone know what this may mean?
- > >
- >
- > If you have a class that inherits another class with a pure virtual
- > function, you MUST write this function for your class because it is only
- > a deffition in the class you are inhereting. I have never used this but
- > I assume borland C++ would not alow this to compile but I don't know
- > about other compilers. The compiler may be providing a stub. with this
- > error to alow your program to compile. To overcome this you will have
- > to write the function for one of the classes(or both). .....I think:)
- >
- > Newbs
-
- The compiler shouldn't let you compile without the function being
- written. What probably happened is you are calling an abstract function in
- an object that has been deleted.
-
- Richard
-